There's a few commands for you to use (which are also available through the pop-up menu's).
Now there are also two new identifiers, which you can use on the webpage, as well as in your own scripts.

Syntax: parameters in between [ ] are optional, when they're in between < > they are mandatory.

Commands
/stats [ config | been | have | seen | icons | color | help ]

    Use this command to open the script's dialogs.

Example:
/stats config

    Don't specify any parameter to open the main stats dialog.



/statsweb [ port ]

    Put your webpage online at the specified port (default is 80).
    Make sure the port is open.

Example:
/statsweb 8080


/statswebend

    This puts your webpage offline again.



/secho [ chan | query ] < servers | power | time | uptime | events | texts | been | have | seen | cpu | os | cache | hdd | gfx | con | eth | misc | custom >

    With this command you can message the desired data to a channel/query or yourself depending on the options selected on the echo tab in the main or configuration dialog.
    If you are offline, the command will automatically echo, instead of trying to message nothing. If you don't specify a channel or query, the active window will be message'd.

Example:
/secho custom
/secho #channel time


This would echo the custom line you specified to the active window.



/resetstats < all | events | been | have | seen >

    This is what you'll use when you want to reset all, or some, of your kept stats.

Example:
/resetstats all

    Warning: Once reset your stats can never be recovered again. If you wish to save your stats, make a backup of them.

Identifiers
$sinfo can return all of mIRC Stats' statistics. The only thing it cannot return is the servers data, but that can be handled through mIRC identifiers itself anyway.

The main target for this identifier was to use it on the webpages, but now the entire script relies on it. You can also use it to create your own scripts with this, you could create pop-ups to show stats individually for instance or maybe a whole new mIRC Stats GUI.. whatever you want.


Syntax: $sinfo(flag,item,[N])[.prop]

The first parameter, the flag, tells the identifier which kind of information you want to retrieve, for example p which will return webpage information. The reason this needs to be given is because of the various different ways the data is read, the way the data is grouped in the hash table, and to prevent collisions. You can only specify one at a time.

The flag can be:
  • p - returns webpage setting/information
  • t - returns time setting
  • e - returns basic event counter value
  • b - returns been counter value
  • h - returns have counter value
  • s - returns seen counter value
  • y - returns system information
  • m - returns misc system information
The second parameter, the item, is the name of the item you wish to retrieve. They are all given in the table below. Note that they are grouped, see the first parameter for that.

The third parameter can be used for two things:
  1. For the cwords item, is explained in the item table below.
  2. You can use it to make an event counter round to the specified ammount of decimals. Normally it would round to one, but that could return 0 if the value is very small. With this you could make it return 0.00182 or something.
Examples and a description for the properties can be found under the table.

All items:

>ItemReturns
>pwebpage setting
pversionmIRC Stats' version
pwintitlethe window title
ppagetitlethe page title
pnickthe nickname given on the personal tab, not the current nickname in mIRC
panickthe given alternative nickname
pfullnamethe given full name
plocationthe given location
pagethe given age
pgendermale or female
phobbiesthe given hobbies
poccthe given occupation
pbiothe given bio
pemailthe given email address
pwebsitethe given website
pmsnthe given msn addy
paimthe given aim addy
picqthe given icq addy
pyahoothe given yahoo addy
pnetsthe given IRC networks
pchansthe given IRC channels
pnicksthe given IRC nicknames
pshowserv$true if the showing of server information is turned on, otherwise $false
pshowcountlike showserv, but for the counters
pshowsyslike showserv, but for the system stats
pshowtimelike showserv, but for the time data
pshowprivlike showserv, but for the private channels
pshowseclike showserv, but for the secret channels
>ttime setting
ttime$time ( $+ $time(z) GMT)
tdate$day $mdate ($mdate can return either $date or $udate)
ttotalonlinetotal time you've been online
tmircmIRC uptime ($uptime(mirc,1))
tsystemsystem uptime ($uptime(system,1))
>eevent counter value
edatedate of last time the events were reset
etime$ctime value of last reset
etotaltotal of event counters
estartedtimes you've started mIRC
eviewedtimes you opened the stats dialog
eechotimes you've use /secho
ectcpstimes you've replied to a stats ctcp
epagehitsthe times your page has been viewed
edccsendtimes you've sent a dcc file
edccsendsizetotal size of sent dcc files (note, not in bytesize)
edccgettimes you've recieved a dcc file
edccgetsizetotal size of recieved dcc files (note, not in bytesize)
elinesnumber lines you've typed
ewordsnumber of words you've typed
echarsnumber of characters you've typed
epuncsnumber of punctuations you've typed
esmiliesnumber of smilies you've typed
ecwordsThis one works a bit different from the others, since it can return multiple values. When you use this, a third parameter will have to be used. This is a number which represents the Nth custom word, 0 returns the total words. For example:
$sinfo(e,cwords,0)
$sinfo(e,cwords,3)


The first one could return 3, meaning you are keeping track of 3 words.
The second example could return something like custom.moo. In this moo is the word, you can use the entire value in $sinfo() on it's own to get it's count, see the next item.
ecustom.*the value for the specified custom word, in the custom.word format, as shown above.
>bbeen event counter value
bdatedate of last time the been events were reset
btime$ctime value of last reset
btotaltotal of been event counters
bopedtimes you were oped
bdeopedtimes you were deoped
bhalfopedtimes you were halfoped
bdehalfopedtimes you were dehalfoped
bvoicedtimes you were voiced
bdevoicedtimes you were devoiced
bkickedtimes you were kicked
bbannedtimes you were banned
>hhave event counter value
hdatedate of last time the have events were reset
htime$ctime value of last reset
htotaltotal of have event counters
hopedtimes you've oped someone
hdeopedtimes you've deoped someone
hhalfopedtimes you've halfoped someone
hdehalfopedtimes you've dehalfoped someone
hvoicedtimes you've voiced someone
hdevoicedtimes you've devoiced someone
hkickedtimes you've kicked someone
hbannedtimes you've banned someone
hnicktimes you've changed your nick
htopictimes you've changed a topic
hquittimes you've quit a server
hjoinedtimes you've joined a channel
hpartedtimes you've parted a channel
hquerytimes you've opened a query window
hconnectedtimes you've connected to a server
>sseen event counter value
sdatedate of last time the seen events were reset
stime$ctime value of last reset
stotaltotal of seen event counters
sopedtimes you've seen someone get oped
sdeopedtimes you've seen someone get deoped
shalfopedtimes you've seen someone get halfoped
sdehalfopedtimes you've seen someone get dehalfoped
svoicedtimes you've seen someone get voiced
sdevoicedtimes you've seen someone get devoiced
skickedtimes you've seen someone get kicked
sbannedtimes you've seen someone get banned
snicktimes you've seen someone change his/her nick
stopictimes you've seen someone change a topic
squittimes you've seen someone quit a server
sjoinedtimes you've seen someone join a channel
spartedtimes you've seen someone part a channel
>ysystem information
ycpuname and type of processor
ymanmanufacturer of processor
ymhzspeed of cpu, in megahertz
ycachecache of cpu, in kilobytes
yloadload on cpu, as percentage
yramammount of RAM
yramuseusage of ram, ie: 50% (257MB)
yosname and type of OS
yosverOS version
yosbuildOS build number
yosinstinstalled for number of years, months, weeks, days, etc..
yosupcurrent OS (system) uptime
ycachesizesize of cache, in bytesize
ycacheassoccache associativity
ycachelinescache lines
ycachelinesizecache line size
ycacheinstrsizeinstruction size, in bytesize
ycacheinstrassocinstruction associativity
ycacheinstrlinesinstruction lines
ycacheinstrlinesizeinstruction line size
ygfxname and type of GFX card
ygfxrescurrent resolution
ygfxrefcurrent refresh rate, in Hz
ygfxdepthcurrent depth, in bit
yconname and type of dail-up modem
yconspeedmaximum speed of dail-up modem
ycondowndownloaded so far
yconupuploaded so far
yconactivehas been active for
yethname and type of network card
yethspeedmaximum speed of network card
yethgetrecieved so far, in bytesize
yethsentsent so far, in bytesize
yipyour ip, same as $ip
yupstreamyour current upstream, in bytesize
ydownstreamyour current downstream, in bytesize
>mmisc system information, returns $true or $false
m3dNow3DNow! support
m3dNowExtExtended 3DNow! support
mMMXMMX support
mMMXextMMX Extensions
mCPUIDSupports CPUID instruction
mFPUFPU present
mVMEVirtual Mode Extensions
mDEBUGDebug Extensions
mPSEPage Size Extensions
mTSCTime Stamp Counter
mMSRModel Specific Registers
mPAEPage Address Extensions
mMCEMachine Check Extensions
mCMPXCHG8CMPXCHG8 instruction
mAPICAPIC
mSYSENTERSYSENTER/SYSEXIT instruction
mMTRRMemory Type Range Registers instruction
mGPEGlobal Paging Extensions
mMCAMachine Check Architecture
mCMOVCMOV instruction
mPATPage Attribute Table
mPSE36PSE36 (Page Size Extensions)
mFXSAVEFXSAVE/FXRSTOR instruction
mSSESSE
mSSEFPSSE FP support


Lastly, you have a few properties which you can use. They are used for the counters only, just like the third parameter.

There's two kinds, the first kind simply returns an absolute value per the specified ammount of time:
  • .mil - returns value per millenium (yes I know it's useless :P)
  • .cen - returns value per century (just as useless :P)
  • .dec - returns value per decenium
  • .year - returns value per year
  • .month - returns value per month
  • .week - returns value per week
  • .day - returns value per day
  • .hour - returns value per hour
  • .min - returns value per minute
  • .sec - returns value per second
The second kind returns a percentage:
  • .p - returns the percentage of the total for that type (as seen on the dialogs)
  • All of the properties of the first type can be prefixed with 'p'. Making them not return an absolute value, but a percentage.
    ie. .pday, .pweek, etc..


Examples:
//echo -a $sinfo(p,version) - returns mIRC Stats' version
//echo -a $sinfo(e,date) - returns the last reset date for the basic event counters
//echo -a $sinfo(e,cwords,0) - returns the total number of custom words
//echo -a $sinfo(e,cwords,2) - returns the second custom word
//echo -a $sinfo(y,cpu) - returns your cpu type
//echo -a $sinfo(m,MMX) - returns wether your system has MMX support or not ($true or $false)

//echo -a $sinfo(e,lines,3).day - returns the number of lines you type per day, rounded at 3 decimals
//echo -a $sinfo(e,oped).year - returns the number of times you've been oped per year
//echo -a $sinfo(s,nick).pweek - returns the percentage of how many times you've changed your nick per week
//echo -a $sinfo(e,chars).p - returns the percentage of the typed characters of the total ammount of event counters